/*
 * ksContainerBlockReader.h
 *
 *  Created on: Aug 3, 2011
 *      Author: wang
 */

#ifndef KSCONTAINERBLOCKReader_H_
#define KSCONTAINERBLOCKReader_H_
#include "../ksContainerBlock.h"

class ksContainerBlockReader: public ksContainerBlock, public ksBlockReader
{
public:
    void loadHeader(unsigned char* data, unsigned int length);
    void loadEntries(unsigned char *data, unsigned int length);
    void load(std::ifstream& input);
    void extract(const char* path);
public:
    virtual ksBlockReader* reader()
    {
        return this;
    }
};

#endif /* KSCONTAINERBLOCKReader_H_ */
